import Vue from 'vue'
import Router from 'vue-router'
import index from '@/views/Index/index'
import list from '@/views/List/index'
import companyInfo from '@/views/companyInfo/index'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      text: '首页',
      component: () => import('@/views/index.vue'),
      redirect: '/index',
      children: [
        {
          path: '/index',
          component: index
        }, {
          path: '/list',
          component: list
        }, {
          path: '/companyInfo',
          component: companyInfo
        }
      ]
    }

  ]
})
